package a.f.j;

import a.c.d;
import a.c.e;
import a.c.k;
import a.c.n;
import a.c.w;
import a.c.x;
import a.i.a.m;

public class t
{
  private a.c.q a;
  private m c;
  private x d;
  private boolean e = false;
  private x f;
  private n g;
  public static boolean h;
  
  public void a(a.c.q paramq)
  {
    if (!ab.g)
    {
      if (this.e) {
        throw new RuntimeException("IntDSP.init(): already initialized !");
      }
      this.a = paramq;
      this.d = this.a.B();
      this.c = new a.i.a.q(this.a, this.d);
      this.f = this.a.B();
      this.g = this.a.C();
    }
    this.e = true;
  }
  
  public void a()
  {
    if (!ab.g)
    {
      if (!this.e) {
        throw new RuntimeException("IntDSP.dispose(): not initialized !");
      }
      this.c.e();
      this.a.a(this.d);
      this.a.a(this.f);
      this.a.a(this.g);
    }
    this.e = false;
  }
  
  public a.c.ab a(e parame1, e parame2, k paramk)
  {
    boolean bool = ab.g;
    int m = ab.f;
    if (!bool) {
      if (!this.e) {
        throw new RuntimeException("IntDSP.start(): not initialized !");
      }
    }
    int i = this.a.k();
    Object localObject = this.a.v();
    do
    {
      if (!((w)localObject).e()) {
        break;
      }
      e locale1 = ((w)localObject).d();
      if (bool) {
        break label130;
      }
      this.f.a(locale1, 2147483647);
      ((w)localObject).f();
      if (m != 0) {
        break label129;
      }
    } while (m == 0);
    this.f.a(parame1, 0);
    if (!bool) {
      this.c.d();
    }
    label129:
    label130:
    this.c.a(parame1, 0);
    label324:
    label337:
    do
    {
      for (;;)
      {
        if (!this.c.a())
        {
          localObject = this.c.c();
          int j = this.f.getInt(localObject);
          if (j == 2147483647) {
            return null;
          }
          if ((bool) || (localObject != parame2))
          {
            locald = ((e)localObject).h();
            if (locald != null)
            {
              e locale3 = locald.a((e)localObject);
              int k = j + paramk.getInt(locald);
              if ((bool) || ((!bool) && ((m != 0) || (m != 0)))) {
                break label379;
              }
              if (k < this.f.getInt(locale3))
              {
                if (!bool) {
                  if (this.c.a(locale3))
                  {
                    this.c.b(locale3, k);
                    if (bool) {
                      break label337;
                    }
                    if (m == 0) {
                      break label324;
                    }
                  }
                }
                this.c.a(locale3, k);
                this.f.a(locale3, k);
                this.g.a(locale3, locald);
              }
              locald = locald.i();
              if (m == 0) {
                break;
              }
            }
          }
        }
      }
    } while (bool);
    if (this.f.getInt(parame2) == 2147483647) {
      label379:
      return null;
    }
    localObject = new a.c.ab();
    e locale2 = parame2;
    d locald = (d)this.g.get(locale2);
    ((a.c.ab)localObject).add(locald);
    if (locald.a(locale2) != parame1)
    {
      locale2 = locald.a(locale2);
      locald = (d)this.g.get(locale2);
    }
    while (bool)
    {
      if (!bool)
      {
        if (m != 0) {
          break label486;
        }
        ((a.c.ab)localObject).a(locald);
      }
      if (m == 0) {
        break;
      }
    }
    label486:
    return localObject;
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.j.t
 * JD-Core Version:    0.7.0.1
 */